<?php

namespace app\system\model;

use think\Model;

class AdminModel extends Model
{
    protected $table = 'admin';
    protected $autoWriteTimestamp = true;

    //管理员属于的角色
    public function roles(){
        return $this->belongsToMany('RoleModel','admin_role','role_id','admin_id');
    }

    //管理员
}
